package com.vision.core.cl;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

/**
 * Default {@link Place} implementation. 
 * 
 * @author Mark
 *
 */
public class AppPlace extends Place {
	  
	private String id;

	public AppPlace(String token) {
		this.id = token;
	}

	public String getId() {
		return id;
	}

	@Prefix("")
	public static class Tokenizer implements PlaceTokenizer<AppPlace> {

		@Override
		public String getToken(AppPlace place) {
			return place.getId();
		}

		@Override
		public AppPlace getPlace(String token) {
			return new AppPlace(token);
		}

	}
	
}
